home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / WebSites / MailingLists / AMOSLIST.0599 / 000097_nobody_Wed May 19 05:54:06 1999.msg < prev    next >
Internet Message Format  |  1999-06-01  |  2KB

  1. Received: from onelist.com (pop.onelist.com [209.207.164.159])
  2.     by osf1.gmu.edu (8.8.8/8.8.8) with SMTP id FAA10435
  3.     for <mcox4@osf1.gmu.edu>; Wed, 19 May 1999 05:54:06 -0400 (EDT)
  4. Received: (qmail 21594 invoked by alias); 19 May 1999 09:53:56 -0000
  5. Received: (qmail 21574 invoked from network); 19 May 1999 09:53:55 -0000
  6. Received: from unknown (HELO saintolaves.demon.co.uk) (195.99.45.82) by pop.onelist.com with SMTP; 19 May 1999 09:53:55 -0000
  7. Date: Wed, 19 May 1999 10:58:33 EST
  8. Message-Id: <199905191058.AA33554740@saintolaves.demon.co.uk>
  9. From: <cheila@saintolaves.demon.co.uk>
  10. X-Sender: <cheila@saintolaves.demon.co.uk>
  11. To: amos-list@onelist.com
  12. X-Mailer: <IMail v4.06>
  13. Mailing-List: list amos-list@onelist.com; contact amos-list-owner@onelist.com
  14. Delivered-To: mailing list amos-list@onelist.com
  15. Precedence: bulk
  16. List-Unsubscribe: <mailto:amos-list-unsubscribe@ONElist.com>
  17. Reply-to: amos-list@onelist.com
  18. Mime-Version: 1.0
  19. Content-Type: text/plain; charset=us-ascii
  20. Subject: Re: [amos-list] ?Math bug
  21. Status: O
  22. X-Status: 
  23.  
  24. From: <cheila@saintolaves.demon.co.uk>
  25.  
  26. Hi
  27.  
  28. Computers use powers of two, so 1/2 can be exactly represented
  29. but 1/3 can't (just like 1/7 can't with decimal fractions).
  30.  
  31. A solution is to use arbitrary precision rational numbers
  32. (using long bitstrings, but very slow and awkward)
  33. but this isn't really necessary - the order of operations
  34. can make a big difference with floats.  Always try to avoid
  35. finding the difference of two similarly sized numbers, or
  36. adding a small number to a much larger one.
  37.  
  38. Hope this helps
  39.  
  40. Claude
  41.  
  42.  
  43.  
  44. ------------------------------------------------------------------------
  45. ONElist:  where real people with real interests get connected.
  46. http://www.onelist.com
  47. Join a new list today!
  48. ------------------------------------------------------------------------
  49. Official AMOS WWW: http://members.xoom.com/AmosFactory/front.html